import pymysql


def selectSSHHost(dbHost,dbUser,dbPassword,dbDatabase):
    db=pymysql.connect(host=dbHost,user=dbUser,password=dbPassword,db=dbDatabase)
    cursor = db.cursor()
    cursor.execute("select * from sshhost")
    result = cursor.fetchall()
    for row in result:
        ip = row[0]
        port = row[1]
        user = row[2]
        passwd = row[3]
        size = row[4]
        timeout = row[5]
        apiport = row[6]
        outport = row[7]
        return ip,port,user,passwd,size,timeout,apiport,outport